IOMMU: handle IOMMU mapping and unmapping failures
authorQuan Xu <quan.xu@intel.com>
Tue, 14 Jun 2016 13:10:57 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Jun 2016 13:10:57 +0000 (15:10 +0200)
commit834c97baebb3743c54bcae228e984ae1b9692e6a
tree90144f35f6f7ed2deecc1cf04d38969091b5b074
parentbfa84968b2dd1612be73b36addccd3b2f5bda23f
IOMMU: handle IOMMU mapping and unmapping failures

Treat IOMMU mapping and unmapping failures as a fatal to the DomU
If IOMMU mapping and unmapping failed, crash the DomU and propagate
the error up to the call trees.

No spamming of the log can occur. For DomU, we avoid logging any
message for already dying domains. For Dom0, that'll still be more
verbose than we'd really like, but it at least wouldn't outright
flood the console.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/iommu.c